package serveur;

import java.rmi.RemoteException;
import java.rmi.server.RMIClientSocketFactory;
import java.rmi.server.RMIServerSocketFactory;
import java.rmi.server.UnicastRemoteObject;
import java.util.List;


@SuppressWarnings("serial")
public class ServiceClientNonConnecteImpl extends UnicastRemoteObject implements
			ServiceClientNonConnecteRemote {
	
	
	private TwitterDistant twitter;
	

	public ServiceClientNonConnecteImpl() throws RemoteException {
	}

	public ServiceClientNonConnecteImpl(int port) throws RemoteException {
		super(port);
	}
	
	public ServiceClientNonConnecteImpl(TwitterDistant twitter, int port) throws RemoteException {
		super(port);
		this.twitter = twitter;
	}

	public ServiceClientNonConnecteImpl(int port, RMIClientSocketFactory csf,
			RMIServerSocketFactory ssf) throws RemoteException {
		super(port, csf, ssf);
	}

	@Override
	public ServiceClientConnecteRemote seConnecter(ClientDistant c, String pseudo, String mdp)
			throws RemoteException {
		return twitter.seConnecter(c, pseudo, mdp);
	}

	@Override
	public ServiceClientConnecteRemote sInscrire(ClientDistant c, String nom, String prenom,
			String mdp, String pseudo) throws RemoteException {
		return twitter.sInscrire(c, nom, prenom, mdp, pseudo);
	}

}
